using ICSharpCode.SharpZipLib.Zip;
using System;
using System.IO;
using System.IO.IsolatedStorage;
namespace Salient.SharpZipLib.Zip
{
	public class IsolatedDynamicDiskDataSource : IDynamicDataSource
	{
		public Stream GetSource(ZipEntry entry, string name)
		{
			Stream result = null;
			if (name != null)
			{
				using (IsolatedStorageFile userStoreForApplication = IsolatedStorageFile.GetUserStoreForApplication())
				{
					result = userStoreForApplication.OpenFile(name, 3, 1, 1);
				}
			}
			return result;
		}
	}
}
